package com.zx.jhpt.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Enclosure entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ENCLOSURE")
public class Enclosure implements java.io.Serializable {

	// Fields

	private String id;
	private String pkid;
	private String url;
	private String filename;
	private Date createtime;
	private Date hcsj;
	private String userid;
	private String type;
	private String deptid;
	private String fxid;

	// Constructors

	/** default constructor */
	public Enclosure() {
	}

	/** minimal constructor */
	public Enclosure(String id) {
		this.id = id;
	}

	/** full constructor */
	public Enclosure(String id, String pkid, String url, String filename,
			Date createtime, Date hcsj, String userid, String type,String deptid,String fxid) {
		this.id = id;
		this.pkid = pkid;
		this.url = url;
		this.filename = filename;
		this.createtime = createtime;
		this.hcsj = hcsj;
		this.userid = userid;
		this.type = type;
		this.deptid =deptid;
		this.fxid = fxid;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "PKID", length = 64)
	public String getPkid() {
		return this.pkid;
	}

	public void setPkid(String pkid) {
		this.pkid = pkid;
	}

	@Column(name = "URL", length = 200)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "FILENAME", length = 200)
	public String getFilename() {
		return this.filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATETIME")
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "HCSJ", length = 7)
	public Date getHcsj() {
		return this.hcsj;
	}

	public void setHcsj(Date hcsj) {
		this.hcsj = hcsj;
	}

	@Column(name = "USERID", length = 64)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "TYPE", length = 64)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "DEPTID", length = 64)
	public String getDeptid() {
		return deptid;
	}

	public void setDeptid(String deptid) {
		this.deptid = deptid;
	}
	@Column(name = "FXID", length = 64)
	public String getFxid() {
		return fxid;
	}

	public void setFxid(String fxid) {
		this.fxid = fxid;
	}
}